package com.learn.spring.ioc.way.component;

import org.springframework.stereotype.Component;

@Component
public class ComponentBean {
    private String name;
    private int count;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "ComponetBean{" +
                "name='" + name + '\'' +
                ", count=" + count +
                '}';
    }
}
